<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>线上服饰</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <style>


    </style>
</head>

<body>
</body>

</html>
<script type="text/javascript" src="script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        initPage()
    }

    function initPage() {
        api.setStatusBarStyle({
            style: 'dark'
        });
        api.openTabLayout({
            name: 'homepage',
            url: 'index.html',
            hideTabBar: false,
            slidBackEnabled: false,
            "tabBar": {
                "scrollEnabled": false,
                "background": "#fff",
                "shadow": "#f1f1f1",
                "color": "#aaa",
                "selectedColor": "#FF7037",
                "preload": 0,
                "frames": [{
                    "name": "main",
                    "url": "html/main.html",
                    "title": "首页"
                }, {
                    "name": "page2",
                    "url": "html/sort.html",
                    "title": "分类"
                }, {
                    "name": "page3",
                    "url": "html/shopping_cart.html",
                    "title": "购物车"
                }, {
                    "name": "page4",
                    "url": "html/user.html",
                    "title": "我的"
                }],
                "list": [{
                    "text": "首页",
                    "iconPath": "images/common/main1_1.png",
                    "selectedIconPath": "images/common/main1.png"
                }, {
                    "text": "分类",
                    "iconPath": "images/common/main2_1.png",
                    "selectedIconPath": "images/common/main2.png"
                }, {
                    "text": "购物车",
                    "iconPath": "images/common/main3_1.png",
                    "selectedIconPath": "images/common/main3.png"
                }, {
                    "text": "我的",
                    "iconPath": "images/common/main4_1.png",
                    "selectedIconPath": "images/common/main4.png"
                }]
            }
        });
    }
</script>